import request from '@/utils/request'

// 查询压力报警灯列表
export function listPressureSensorAlarmDevice(query) {
  return request({
    url: '/device/pressureSensorAlarmDevice/list',
    method: 'get',
    params: query
  })
}

// 查询压力报警灯详细
export function getPressureSensorAlarmDevice(id) {
  return request({
    url: '/device/pressureSensorAlarmDevice/' + id,
    method: 'get'
  })
}

// 新增压力报警灯
export function addPressureSensorAlarmDevice(data) {
  return request({
    url: '/device/pressureSensorAlarmDevice',
    method: 'post',
    data: data
  })
}

// 修改压力报警灯
export function updatePressureSensorAlarmDevice(data) {
  return request({
    url: '/device/pressureSensorAlarmDevice',
    method: 'put',
    data: data
  })
}

// 删除压力报警灯
export function delPressureSensorAlarmDevice(id) {
  return request({
    url: '/device/pressureSensorAlarmDevice/' + id,
    method: 'delete'
  })
}
